package com.yuyou.activity.ts.service.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ActivityTsQuestionConfig implements Serializable {
    /**
     * 主键
     */
    private Long activityTsQuestionConfigId;

    /**
     * 项目代码
     */
    private String projectCode;

    /**
     * 科目:1：物理，2：地理，3：生物，4：化学
     */
    private Integer subject;

    /**
     * 题干
     */
    private String body;

    /**
     * 正确答案
     */
    private String answerRight;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getActivityTsQuestionConfigId() {
        return activityTsQuestionConfigId;
    }

    public void setActivityTsQuestionConfigId(Long activityTsQuestionConfigId) {
        this.activityTsQuestionConfigId = activityTsQuestionConfigId;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public Integer getSubject() {
        return subject;
    }

    public void setSubject(Integer subject) {
        this.subject = subject;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getAnswerRight() {
        return answerRight;
    }

    public void setAnswerRight(String answerRight) {
        this.answerRight = answerRight;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityTsQuestionConfig other = (ActivityTsQuestionConfig) that;
        return (this.getActivityTsQuestionConfigId() == null ? other.getActivityTsQuestionConfigId() == null : this.getActivityTsQuestionConfigId().equals(other.getActivityTsQuestionConfigId()))
            && (this.getProjectCode() == null ? other.getProjectCode() == null : this.getProjectCode().equals(other.getProjectCode()))
            && (this.getSubject() == null ? other.getSubject() == null : this.getSubject().equals(other.getSubject()))
            && (this.getBody() == null ? other.getBody() == null : this.getBody().equals(other.getBody()))
            && (this.getAnswerRight() == null ? other.getAnswerRight() == null : this.getAnswerRight().equals(other.getAnswerRight()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActivityTsQuestionConfigId() == null) ? 0 : getActivityTsQuestionConfigId().hashCode());
        result = prime * result + ((getProjectCode() == null) ? 0 : getProjectCode().hashCode());
        result = prime * result + ((getSubject() == null) ? 0 : getSubject().hashCode());
        result = prime * result + ((getBody() == null) ? 0 : getBody().hashCode());
        result = prime * result + ((getAnswerRight() == null) ? 0 : getAnswerRight().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activityTsQuestionConfigId=").append(activityTsQuestionConfigId);
        sb.append(", projectCode=").append(projectCode);
        sb.append(", subject=").append(subject);
        sb.append(", body=").append(body);
        sb.append(", answerRight=").append(answerRight);
        sb.append(", sort=").append(sort);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}